package com.oil.petro.eshop.utils;

import org.apache.commons.codec.binary.Base64;

public class ImageHelper {

    public static String setImage(byte[] imageByteArray) {
        return Base64.encodeBase64String(imageByteArray);
    }

    public static byte[] getImage(String imageDataString) {
        return Base64.decodeBase64(imageDataString);
    }

}
